home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_07
/
1007054c
< prev
next >
Wrap
Text File
|
1992-05-04
|
128b
|
10 lines
istream &operator>>(istream &is, rational &r)
{
long n, d;
if (is >> n >> d)
r = rational(n, d);
return is;
}